package inject

import (
	"gitee.com/kordar/layuiadmin/admin/controller"
	digstarter "github.com/kordar/dig-starter"
)

func ControllerProvider() {

	digstarter.ProvideE(func(p ControllerParams) (ControllerResult, error) {
		return ControllerResult{
			AdminController: controller.NewAdminController(p.AdminService),
			AuthController:  controller.NewAuthController(p.Captcha, p.Repos),
			HomeController:  controller.NewHomeController(),
		}, nil
	})

}
